<!DOCTYPE html>
<html>
    <head>
        <title>PC Tools</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>/public/css/style.css" />
        
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>/public/css/jquery-ui-1.8.18.custom.css" />
        <script type="text/javascript" src="<?php echo base_url() ?>/public/js/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>/public/js/jquery-ui-1.8.16.custom.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>/public/js/jquery.validate.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>/public/js/general.js"></script>		
    </head>
    <body>
        <?php config(); site_url(); ?>
        <?php //var_dump(isActiveMenu(array())); die; ?>
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>    
                <td align="center">
                    <?php //var_dump(isActiveMenu(array('index'))) ?>
                    <div id="main-page">
                        <!-- HEADER -->
                       <div class="header">
                            <img class="header-logo" src="<?php echo base_url(); ?>public/images/logo.png" />
                       </div>
                       
                       <!-- MENU -->
                       <ul class="top-menu">    
                            <li class="main-item home <?php echo (isActiveMenu(array()) ? 'active' : '')?>"><a href="<?php echo base_url() ?>">Nhà</a></li>
                            <li menuId="sub-menu-product" class="main-item <?php echo (isActiveMenu(array('san-pham')) ? 'active' : '')?>" >
                                 <a href="<?php echo base_url() ?>san-pham.html">Sản phẩm</a>
                                 <img src="<?php echo  base_url() ?>public/images/dropdown-arrowdown.png" />
                            </li>
                            <div id="sub-menu-product" class="sub" style="display: none; width: 510px; opacity: 1; " >
                                <?php $products = product_menu(); ?>
                                <?php if($products['ProductSafe']): ?>
                                <ul>
                                    <li><h3>Sản phẩm bảo vệ</h3></li>
                                    <?php foreach($products['ProductSafe'] as $product): ?>
                                    <li><a href="<?php echo base_url() ?>san-pham/chi-tiet/<?php echo $product['ProductCategoryId'] ?>/<?php echo $product['ProductId'] ?>"><?php echo $product['ProductName'] ?></a></li>
                                    <?php endforeach ?>
                                </ul>
                                <?php endif; ?>
                                <?php if($products['ProductPerformance']): ?>
                                <ul>
                                    <li><h3>Sản phẩm hiệu suất</h3></li>
                                    <?php foreach($products['ProductPerformance'] as $product): ?>
                                    <li><a href="<?php echo base_url() ?>san-pham/chi-tiet/<?php echo $product['ProductCategoryId'] ?>/<?php echo $product['ProductId'] ?>"><?php echo $product['ProductName'] ?></a></li>
                                    <?php endforeach ?>
                                </ul>
                                <?php endif; ?>
                            </div>
                            <li class="main-item <?php echo (isActiveMenu(array('ho-tro')) ? 'active' : '')?>"><a href="<?php echo base_url() ?>ho-tro.html">Hỗ trợ</a></li>
                            <li class="main-item <?php echo (isActiveMenu(array('gioi-thieu')) ? 'active' : '')?>"><a href="<?php echo base_url() ?>gioi-thieu.html">Giới thiệu về chúng tôi</a></li>
                            <li class="conner-right"></li>
                            <?php if($this->session->userdata('UserId') != null): ?>
                                <li class="item-right"><a href="<?php echo base_url() ?>dang-xuat.html">Đăng xuất tài khoản</a></li>
                            <?php else: ?>
                                <li class="item-right"><a href="<?php echo base_url() ?>dang-nhap.html">Đăng nhập tài khoản</a></li>
                            <?php endif; ?>
                       </ul>